#include "FileWriterImp.h"
using namespace std;

FileWriterImp::FileWriterImp(void)
{
}

FileWriterImp::~FileWriterImp(void)
{
}

bool FileWriterImp::OpenFile(string filename)
{
	_file.open(filename.c_str(), std::ios::out | std::ios::binary);
	return true;
}

void FileWriterImp::CloseFile()
{
	_file.close();
}

void FileWriterImp::WriteByte(BYTE* b, int size)
{
	_file.write((char*)b, size);
}
